package internal

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func NewRouter() *gin.Engine {
	route := gin.Default()
	route.GET("/hello", hello)
	return route
}

func hello(c *gin.Context) {
	c.JSON(http.StatusOK, gin.H{"code": 0, "message": "请求成功"})
}
